import request from '@/utils/request'
// 登录
export const login = (data) => {
  return request({
    url: '/auth/login',
    data,
    method: 'post'
  })
}
// 获取管理员信息
export const getUser = () => {
  return request({ url: '/auth/currentUser' })
}
